<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
namespace org\copperforest\oak\templates;

class XMLTemplate extends HTTPTemplate
{

    static function quote( $string )
    {

        if ( empty( HTTPResponse::$_output_charset ) )
                HTTPResponse::$_output_charset = HTTPResponse::getHeaderCharset();

        return htmlspecialchars( $string, HTTPResponse::$_output_charset );
    }

}
